package cn.org.book.shop.article.domain;

import cn.org.book.shop.common.annotation.Excel;
import cn.org.book.shop.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * APP已发布文章配置对象 ap_article_config
 *
 * @author julywhj
 * @date 2020-11-17
 */
public class ApArticleConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 文章ID
     */
    @Excel(name = "文章ID")
    private Long articleId;

    /**
     * 是否可评论
     */
    @Excel(name = "是否可评论")
    private Boolean isComment = true;

    /**
     * 是否转发
     */
    @Excel(name = "是否转发")
    private Boolean isForward = true;

    /**
     * 是否下架
     */
    @Excel(name = "是否下架")
    private Boolean isDown = false;

    /**
     * 是否已删除
     */
    @Excel(name = "是否已删除")
    private Boolean isDelete = false;

    /**
     * 是否可下载
     */
    @Excel(name = "是否可下载")
    private Boolean isDownload = true;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setIsComment(Boolean isComment) {
        this.isComment = isComment;
    }

    public Boolean getIsComment() {
        return isComment;
    }

    public void setIsForward(Boolean isForward) {
        this.isForward = isForward;
    }

    public Boolean getIsForward() {
        return isForward;
    }

    public void setIsDown(Boolean isDown) {
        this.isDown = isDown;
    }

    public Boolean getIsDown() {
        return isDown;
    }

    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDownload(Boolean isDownload) {
        this.isDownload = isDownload;
    }

    public Boolean getIsDownload() {
        return isDownload;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("articleId", getArticleId())
                .append("isComment", getIsComment())
                .append("isForward", getIsForward())
                .append("isDown", getIsDown())
                .append("isDelete", getIsDelete())
                .append("isDownload", getIsDownload())
                .toString();
    }
}
